package com.xps.and.yuntong.Data.bean1;

import com.google.gson.Gson;

import org.json.JSONException;
import org.json.JSONObject;

/**
 * Created by Administrator on 2018/1/27.
 */

public class StartTrip {


    /**
     * return_code : SUCCESS
     * return_msg : 操作成功
     * return_body : null
     */

    private String return_code;
    private String return_msg;
    private Object return_body;

    public static StartTrip objectFromData(String str) {

        return new Gson().fromJson(str, StartTrip.class);
    }

    public static StartTrip objectFromData(String str, String key) {

        try {
            JSONObject jsonObject = new JSONObject(str);

            return new Gson().fromJson(jsonObject.getString(str), StartTrip.class);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        return null;
    }

    public String getReturn_code() {
        return return_code;
    }

    public void setReturn_code(String return_code) {
        this.return_code = return_code;
    }

    public String getReturn_msg() {
        return return_msg;
    }

    public void setReturn_msg(String return_msg) {
        this.return_msg = return_msg;
    }

    public Object getReturn_body() {
        return return_body;
    }

    public void setReturn_body(Object return_body) {
        this.return_body = return_body;
    }
}
